<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <input type="hidden" name="id" value="{$row.id|default=''}">
<input type="hidden" name="sort" value="{$row.sort|default=''}">
        <div class="layui-form-item">
            <label class="layui-form-label">进食方式</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['eat']['option'] as $key=>$vo}
                    <input name="eat[]" value="{$vo.id}" type="checkbox" title="{$vo.name}"  {if in_array($vo.id,explode(',',$row.eat))}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">入厕方式</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['goto_toilet']['option'] as $key=>$vo}
                    <input name="goto_toilet[]" value="{$vo.id}" type="checkbox" title="{$vo.name}"  {if in_array($vo.id,explode(',',$row.goto_toilet))}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手术</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['operation']['option'] as $key=>$vo}
                    <input name="operation[]" value="{$vo.id}" type="checkbox" title="{$vo.name}"  {if in_array($vo.id,explode(',',$row.operation))}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管道</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['the_conduit']['option'] as $key=>$vo}
                    <input name="the_conduit[]" value="{$vo.id}" type="checkbox" title="{$vo.name}"  {if in_array($vo.id,explode(',',$row.the_conduit))}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">病症</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['disease']['option'] as $key=>$vo}
                    <input name="disease[]" value="{$vo.id}" type="checkbox" title="{$vo.name}"  {if in_array($vo.id,explode(',',$row.disease))}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">睡眠</label>
            <div class="layui-input-block">
                    {foreach $alldata['field']['sleeps']['option'] as $key=>$vo}
                    <input name="sleeps[]" value="{$vo.id}" type="checkbox" title="{$vo.name}"  {if in_array($vo.id,explode(',',$row.sleeps))}checked=""{/if}>
                    {/foreach}
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input name="status" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="开启|关闭" {if $row.status==1}checked=""{/if}>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>